using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RailwayInterval : MonoBehaviour
{
    public float leftInterval;
    public float rightInterval;
    public float time = -1;
    public int gid;

    public Transform StartGO;
    public Transform EndGO;

    private void Start() 
    {
        StartGO = transform.Find("StartGO");
        EndGO = transform.Find("EndGO");
        GameManger.instance.RegisteredRailInterval(this);
    }

    public float GetLeftInterval()
    {
        return leftInterval;
    }
    public float GetRightInterval()
    {
        return rightInterval;
    }

}


